package com.njtoyo.taxi.admin.mapper.master.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.njtoyo.taxi.admin.mapper.master.enums.DriverMarketingSituation;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author Dell
 * @since 2021-07-29
 */
@TableName(value = "driver_marketing")
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="DriverMarketing对象", description="")
public class DriverMarketing implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "活动内容")
    private String title;

    @ApiModelProperty(value = "0:redpacket,1:merchant")
    private Long category;

    private Date startedAt;

    @ApiModelProperty(value = "结束时间")
    private Date endedAt;

    private Long driverRegionId;

    @ApiModelProperty(value = "城市ID")
    private Long cityId;

    @ApiModelProperty(value = "奖励场景")
    private DriverMarketingSituation situation;

    @ApiModelProperty(value = "活动参数")
    private String specifics;

    @ApiModelProperty(value = "有效时间段")
    private String validTime;

    @ApiModelProperty(value = "有效区域")
    private String validRegion;

    @ApiModelProperty(value = "是否激活")
    private Boolean isActive;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedAt;


}
